<?php
/**
 * Junction_Sql_Table
 * 
 * Models a database table.
 * 
 * @author Patrick J. Mizer <patrick.mizer@gmail.com>
 */
 
using("Junction_Sql_Writable"); 
using("Junction_Sql_Utilities");
 
class Junction_Sql_Table implements Junction_Sql_Writable
{
	/**
	 * Table name.
	 * 
	 * @var string
	 */
	private $_name;
	
	/**
	 * Junction_Sql_Table Constructor
	 * 
	 * @param string name
	 */
    public function __construct($name) 
    {
    	$this->_name = $name;
    }
    
    /**
     * Getter for table name
     * 
     * @return string table name
     */
    public function getName()
    {
    	return $this->_name;
    }
    
    public function getSqlString()
    {
    	return Junction_Sql_Utilities::addTicks($this->_name);
    }
}
?>